home *** CD-ROM | disk | FTP | other *** search
/ Champak 132 (Alt) / Vol 132.iso / games / nameless.swf / scripts / DefineSprite_3085 / frame_3 / DoAction.as
Encoding:
Text File  |  2011-06-09  |  382 b   |  13 lines

  1. _root.bNum += 1;
  2. _root.attachMovie("bullet","bullet" + _root.bNum,_root.bNum);
  3. eval("_root.bullet" + _root.bNum).dir = this._parent.dir;
  4. if(this._parent.dir == "left")
  5. {
  6.    eval("_root.bullet" + _root.bNum)._x = this._parent._x - 40;
  7. }
  8. else
  9. {
  10.    eval("_root.bullet" + _root.bNum)._x = this._parent._x + 40;
  11. }
  12. eval("_root.bullet" + _root.bNum)._y = this._parent._y - 80;
  13.